import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import index from './views/home/index.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      // path: '/',
      // component: Home,
      //
      path: '/',
      component: index,
      children: [


        // {
        //   path: '/orderList/:id',
        //   name: 'orderList',
        //   component: () => import('./views/orderList.vue')
        // },

        // {
        //   path: '/queryList/:tel',
        //   name: 'queryList',
        //   component: () => import('./views/queryList.vue')
        // },
        // {
        //   path: '/introduction/:id',
        //   name: 'introduction',
        //   component: () => import('./views/introduction.vue')
        // },
        // {
        //   path: '/details/:id',
        //   name: 'details',
        //   component: () => import('./views/details.vue')
        // },


        //
        {
          path: '/',
          name: 'myMain',
          component: () => import('./views/home/myMain/index.vue')
        },
        //show/
        {
          path: '/show',
          name: 'show',
          component: () => import('./views/home/show/index.vue')
        },
        //introduction-details
        {
          path: '/show/introduction/:id',
          name: 'introduction',
          component: () => import('./views/home/show/introduction/index.vue')
        },
        {
          path: '/show/introduction/details/:id',
          name: 'details',
          component: () => import('./views/home/show/introduction/details/index.vue')
        },
        {
          path: '/reservation',
          name: 'reservation',
          component: () => import('./views/home/reservation/index.vue')
        },
        //orderlist-querylist/
        {
          path: '/reservation/orderList/:id',
          name: 'orderList',
          component: () => import('./views/home/reservation/orderList/index.vue')
        },

        {
          path: '/query',
          name: 'query',
          component: () => import('./views/home/query/index.vue')
        },
        //querylist
        {
          path: '/query/queryList/:tel',
          name: 'queryList',
          component: () => import('./views/home/query/queryList/index.vue')
        },
      ]
    }
  ]
})
